<?
class MoviesModel extends Model {


/* Browse */

	public $show_fields = array(
		'title',
		'rating',
		'description',
		'votes',
		'id_category' => array('category', 'categories.id_category')
	);
	
	
/* Details */
	
	public $details_show_fields = array(
		'title',
		'trailer',
		'id_category' => array('category', 'categories.id_category')
	);
	

/* Update */	
	
	public $update_show_fields = array(
		'title',
		'trailer',
		'id_category' => array('category', 'categories.id_category')
	);
	
	public $update_extra_tables = array(
		'id_category' => array('categories', 'id_category', 'category')
	);

	public $field_types = array('id_category' => 'select');

	
	function __construct () {
		parent::__construct();
	}

}
?>
